package com.example.mapper;

import com.example.domain.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author tong
* @description 针对表【goods(商品表)】的数据库操作Mapper
* @createDate 2023-05-13 00:57:11
* @Entity com.example.domain.Goods
*/
@Mapper
@Repository
public interface GoodsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    @Select("select  * from goods")
    List<Goods> selectAll();
}
